<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>用户管理</title>
	<%@ include file="/WEB-INF/include/include.jsp" %>
		<script type="text/javascript" src="<%=path %>/js/sysmgr/user/userEdit.js"></script>
  </head>
  <body>
  	<div class="editpage-locked-content">
		<h2 class="editpage-lk-title">编辑:用户</h2>
		<div class="editpage-lk-tbar" id="tbarWrap"></div>
	</div>
	<div class="editpage-content" >
		<div class="editpage-form" id="formWrap"></div>
	</div> 
	
  </body>
</html>
	<ui:page>
		<ui:toolbar  id="toolbar"  renderTo="tbarWrap" >
			<x:items>
				<ui:button text="保存" iconCls='icon-save' id="saveBtn" handler="UserEdit.submitForm"  scope="UserEdit"  />
				<x:value>-</x:value>
				<ui:button text="取消" iconCls='icon-cancel' handler="UserEdit.cancle" scope="UserEdit"   />
				<x:value>-</x:value>
			</x:items>
		</ui:toolbar>
		<ui:formPanel id="userForm"  var="userForm" renderTo="formWrap" title="用户信息" >
			<x:attr name="region">south</x:attr>
			<x:attr name="bodyStyle">padding:5px</x:attr>
			<x:attr name="layout">
				<x:value type="direct">{type:'table',columns:3}</x:value>
			</x:attr>
			<x:items>
				<ui:formPanel.text id="USER_CODE" fieldLabel="用户编码" allowBlank="false"/>
				<ui:formPanel.text id="USER_NAME" fieldLabel="用户名称"  allowBlank="false"/>
				<ui:formPanel.orgTriggerField id="ORG_SIMPLE_NAME" fieldLabel="组织机构"  hiddenId="ORG_ID"></ui:formPanel.orgTriggerField>
				<ui:formPanel.sexCombox id="USER_SEX" fieldLabel="性别" allowBlank="false"></ui:formPanel.sexCombox>
				<ui:formPanel.text id="USER_TEL" fieldLabel="电话"/>
				<ui:formPanel.text id="USER_EMAIL" fieldLabel="邮件地址" >
					<x:attr name="vtype">email</x:attr>
				</ui:formPanel.text>
				<ui:formPanel.date id="USER_AVIDATE" fieldLabel="有效日期"/>
				<ui:formPanel.statusCombox id="C_STATUS" fieldLabel="状态" allowBlank="false"></ui:formPanel.statusCombox>
				<ui:formPanel.hidden id="USER_ID"/>
				<ui:formPanel.textarea id="C_REMARK" fieldLabel="备注" >
				<x:attr name="colspan" type="direct">3</x:attr>
				</ui:formPanel.textarea>
				<ui:formPanel.hidden id="ORG_ID"/>
				<ui:formPanel.hidden id="USER_TYPE"/>
			</x:items>
		</ui:formPanel>
		<x:bottomScript>
			UserEdit.loadForm();
		</x:bottomScript>
</ui:page>

	
